function clickRencentUpload(a_elem) {

    var fileInfoId = a_elem.getElementsByClassName("disabled_span")[0].innerText;

    changeRightTopPanel(fileInfoId);
    if (silentAllPage != 0) {
        toastr.success();
    }
}

function reloadRecentUpload() {
    $.getJSON("/api/recentUploadList", function (res) {
        if(res.code == 0) {
            var $current_upload_file = $("#current_upload_file");
            $current_upload_file.empty();
            if (silentAllPage == 0) {
                for (var i=0; i<res.data.length; i++) {
                    /*感谢，是jQuery中的制表符救了我，&emsp;怎么用怎么丑，把a标签样式改为inline-block之后，好了很多*/
                    $current_upload_file.append(
                        "<a style=\"display: inline-block;width: 100%;height: 28px;text-align: center\"" +
                        "href=\"#\" " +
                        "onclick=\"clickRencentUpload(this)\"" +
                        "title=\"NM："+res.data[i].fileDescribeName+
                        " TY："+res.data[i].fileCategoryLevel1+"·"+res.data[i].fileCategoryLevel2+
                        " UP："+res.data[i].userName+
                        " TM："+res.data[i].fileUploadDateMsg+"\">" +
                        "<span style='display: none' class=\"disabled_span\">"+res.data[i].fileInfoId+"</span>" +
                        ""+res.data[i].fileDescribeName+"\t" +
                        ""+res.data[i].fileCategoryLevel1+"·"+res.data[i].fileCategoryLevel2+"\t" +
                        ""+res.data[i].userName+"\t" +
                        ""+res.data[i].fileUploadDateMsg+"" +
                        "</a><br>")
                }
            } else {
                for (var i=0; i<res.data.length; i++) {
                    /*感谢，是jQuery中的制表符救了我，&emsp;怎么用怎么丑，把a标签样式改为inline-block之后，好了很多*/
                    $current_upload_file.append(
                        "<a style=\"display: inline-block;width: 100%;height: 28px;text-align: center;cursor: pointer;\"" +
                        "onclick=\"clickRencentUpload(this)\"" +
                        "title=\"NM："+res.data[i].fileDescribeName+
                        " TY："+res.data[i].fileCategoryLevel1+"·"+res.data[i].fileCategoryLevel2+
                        " UP："+res.data[i].userName+
                        " TM："+res.data[i].fileUploadDateMsg+"\">" +
                        "<span style='display: none' class=\"disabled_span\">"+res.data[i].fileInfoId+"</span>" +
                        ""+res.data[i].fileDescribeName+"\t" +
                        ""+res.data[i].fileCategoryLevel1+"·"+res.data[i].fileCategoryLevel2+"\t" +
                        ""+res.data[i].userName+"\t" +
                        ""+res.data[i].fileUploadDateMsg+"" +
                        "</a><br>")
                }
            }

        } else if (res.code == 1) {
            toastr.warning(res.msg);
        } else {
            toastr.error(res.msg);
        }
    });
}